package com.qingcheng.dao;

import com.qingcheng.pojo.system.RoleAmongResource;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface RoleAmongResourceMapper extends Mapper<RoleAmongResource> {

    @Select("SELECT resource_id resourceId " +
            "FROM tb_role_resource " +
            "WHERE role_id=#{roleId}")
    public Integer[] findResourceByRoleId(@Param("roleId") Integer roleId);
}
